// DlgSetGdMatrix.cpp : implementation file
//

#include "stdafx.h"
#include "pdarx.h"
#include "UeItem.h"
#include "UeList.h"
#include "DlgSetGdMatrix.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern CUeList data_list;

/////////////////////////////////////////////////////////////////////////////
// CDlgSetGdMatrix dialog


CDlgSetGdMatrix::CDlgSetGdMatrix(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgSetGdMatrix::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgSetGdMatrix)
	m_k11 = 0.0f;
	m_k12 = 0.0f;
	m_k13 = 0.0f;
	m_k14 = 0.0f;
	m_k15 = 0.0f;
	m_k16 = 0.0f;
	m_k21 = 0.0f;
	m_k22 = 0.0f;
	m_k23 = 0.0f;
	m_k24 = 0.0f;
	m_k25 = 0.0f;
	m_k26 = 0.0f;
	m_k31 = 0.0f;
	m_k32 = 0.0f;
	m_k33 = 0.0f;
	m_k34 = 0.0f;
	m_k35 = 0.0f;
	m_k36 = 0.0f;
	m_k41 = 0.0f;
	m_k42 = 0.0f;
	m_k43 = 0.0f;
	m_k44 = 0.0f;
	m_k45 = 0.0f;
	m_k46 = 0.0f;
	m_k51 = 0.0f;
	m_k52 = 0.0f;
	m_k53 = 0.0f;
	m_k54 = 0.0f;
	m_k55 = 0.0f;
	m_k56 = 0.0f;
	m_k61 = 0.0f;
	m_k62 = 0.0f;
	m_k63 = 0.0f;
	m_k64 = 0.0f;
	m_k65 = 0.0f;
	m_k66 = 0.0f;
	//}}AFX_DATA_INIT
}


void CDlgSetGdMatrix::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgSetGdMatrix)
	DDX_Text(pDX, IDC_EDIT_K11, m_k11);
	DDX_Text(pDX, IDC_EDIT_K12, m_k12);
	DDX_Text(pDX, IDC_EDIT_K13, m_k13);
	DDX_Text(pDX, IDC_EDIT_K14, m_k14);
	DDX_Text(pDX, IDC_EDIT_K15, m_k15);
	DDX_Text(pDX, IDC_EDIT_K16, m_k16);
	DDX_Text(pDX, IDC_EDIT_K21, m_k21);
	DDX_Text(pDX, IDC_EDIT_K22, m_k22);
	DDX_Text(pDX, IDC_EDIT_K23, m_k23);
	DDX_Text(pDX, IDC_EDIT_K24, m_k24);
	DDX_Text(pDX, IDC_EDIT_K25, m_k25);
	DDX_Text(pDX, IDC_EDIT_K26, m_k26);
	DDX_Text(pDX, IDC_EDIT_K31, m_k31);
	DDX_Text(pDX, IDC_EDIT_K32, m_k32);
	DDX_Text(pDX, IDC_EDIT_K33, m_k33);
	DDX_Text(pDX, IDC_EDIT_K34, m_k34);
	DDX_Text(pDX, IDC_EDIT_K35, m_k35);
	DDX_Text(pDX, IDC_EDIT_K36, m_k36);
	DDX_Text(pDX, IDC_EDIT_K41, m_k41);
	DDX_Text(pDX, IDC_EDIT_K42, m_k42);
	DDX_Text(pDX, IDC_EDIT_K43, m_k43);
	DDX_Text(pDX, IDC_EDIT_K44, m_k44);
	DDX_Text(pDX, IDC_EDIT_K45, m_k45);
	DDX_Text(pDX, IDC_EDIT_K46, m_k46);
	DDX_Text(pDX, IDC_EDIT_K51, m_k51);
	DDX_Text(pDX, IDC_EDIT_K52, m_k52);
	DDX_Text(pDX, IDC_EDIT_K53, m_k53);
	DDX_Text(pDX, IDC_EDIT_K54, m_k54);
	DDX_Text(pDX, IDC_EDIT_K55, m_k55);
	DDX_Text(pDX, IDC_EDIT_K56, m_k56);
	DDX_Text(pDX, IDC_EDIT_K61, m_k61);
	DDX_Text(pDX, IDC_EDIT_K62, m_k62);
	DDX_Text(pDX, IDC_EDIT_K63, m_k63);
	DDX_Text(pDX, IDC_EDIT_K64, m_k64);
	DDX_Text(pDX, IDC_EDIT_K65, m_k65);
	DDX_Text(pDX, IDC_EDIT_K66, m_k66);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgSetGdMatrix, CDialog)
	//{{AFX_MSG_MAP(CDlgSetGdMatrix)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgSetGdMatrix message handlers

void CDlgSetGdMatrix::OnOK() 
{
	// TODO: Add extra validation here
    data_list = NULL;
  	UpdateData(TRUE);
	data_list = CUeList(36,CUeItem(m_k11),CUeItem(m_k12),CUeItem(m_k13),
		CUeItem(m_k14),CUeItem(m_k15),CUeItem(m_k16),CUeItem(m_k21),
		CUeItem(m_k22),CUeItem(m_k23),CUeItem(m_k24),CUeItem(m_k25),
		CUeItem(m_k26),CUeItem(m_k31),CUeItem(m_k32),CUeItem(m_k33),
		CUeItem(m_k34),CUeItem(m_k35),CUeItem(m_k36),CUeItem(m_k41),
        CUeItem(m_k42),CUeItem(m_k43),CUeItem(m_k44),CUeItem(m_k45),
		CUeItem(m_k46),CUeItem(m_k51),CUeItem(m_k52),CUeItem(m_k53),
		CUeItem(m_k54),CUeItem(m_k55),CUeItem(m_k56),CUeItem(m_k61),
		CUeItem(m_k62),CUeItem(m_k63),CUeItem(m_k64),CUeItem(m_k65),
		CUeItem(m_k66));
	CDialog::OnOK();
}
